package online.cmagic.createType.factory.abstractfactory;

/**
 * 抽象工厂模式
 * @author wangsc
 * @date: 2020年04月12日 13:43
 * @since JDK 1.8
 */
public class TestClient {
    public static void main(String[] args) {
        CarFactory factory = new LuxuryCarFactory();
        Engine engine = factory.createEngine();
        engine.run();
        engine.start();
    }
}
